/**
 * 
 */
package com.cuc.platform.core.dao.baseInfo.mybatis;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import com.cuc.platform.core.dao.baseInfo.BaseInfoComplexQueryDao;
import com.cuc.platform.core.domain.baseInfo.AttrType;

/**
 * @author peepul
 * 安全模块的组合查询Dao实现类 
 *
 * @see SecurityComplexQuery.xml
 */
public class BaseInfoComplexQueryDaoImpl extends SqlSessionDaoSupport implements BaseInfoComplexQueryDao{
	
	/* (non-Javadoc)
	 * @see com.cuc.platform.core.dao.baseInfo.BaseInfoComplexQueryDao#queryAttrTypeWithPage(com.cuc.platform.core.domain.baseInfo.AttrType, int, int)
	 */
	@Override
	public List<AttrType> queryAttrTypeWithPage(AttrType attrType,
			int offset, int limit) {
		
		//执行查询操作
		SqlSession session = this.getSqlSession();
	
		List<AttrType> list = session.selectList(
				"getAllAttrTypes", 
				attrType, new RowBounds(offset, limit));
		
		return list; 
	}
	
}
